import request from '../utils/request.js';

export const loginService = (conditions) => {
  return request.post('/auth/login', conditions);
};

export const adminLoginService = (conditions) => {
  return request.post('/auth/adminLogin', conditions);
};

export const userListService = () => {
  return request.get('/user/selectAll');
};

export const userDeleteService = (userId) => {
  return request.get(`/user/delete?userId=${userId}`);
};

export const userInfoService = (userId) => {
  return request.get(`/user/selectById?userId=${userId}`);
};

// 添加 updatePasswordService
export const updatePasswordService = (data) => {
  return request.post('/user/updatePassword', data);
};